﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--内容列表-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("article", "docadd", modelpowergroup))
      { %>
	<%if(ctx.getInt("mid") != 0 ){ %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_article}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleAdd) %>?tid=<%=ctx.getInt("tid") %>&mid=<%=ctx.getInt("mid") %>&type=add&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_article}" hidefocus="true">_{botton_add_article}</a></li>
	<%if (ctx.getInt("tid") != 0)
    {%>
    <li class="menumain"><a id="A1" class="addinfo" onclick="javascript:parent.onbotton('_{botton_batchadd_article}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleBatchAdd) %>?tid=<%=ctx.getInt("tid")%>&mid=<%=ctx.getInt("mid")%>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'batchaddinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_batchadd_article}" hidefocus="true">_{botton_batchadd_article}</a></li>
    <%} else { %>
    <li class="menumain"><a id="A2" class="addinfo" onclick="javascript:alert('_{article_js_doc_add_midtidnoselect}');return false;"  href="#body" title="_{botton_batchadd_article}" hidefocus="true">_{botton_batchadd_article}</a></li>
    <%} %>
	<%}else{ %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:alert('_{article_js_doc_add_midtidnoselect}');return false;"  href="#body" title="_{botton_add_article}" hidefocus="true">_{botton_add_article}</a></li>
	<%} %>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" title="_{selAll_botton}" hidefocus="true">_{selAll_botton}</a></li>
	<li class="menumain"><a id="bolt" href="#body" hidefocus="true" hidefocus="true">_{bolt_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{viewtype_botton}</span>
				<ul id="articlelabel">
					<li><a class="menunoclick" id="articlelabel0" href="#body" onclick="javascript:dbfilter('articlelabel','dlid',0,0,#{dclabelnum},'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
                    <% var dclabellist = v.data("labellist") as List<Document_Label>; %>
					<% for (int i = 0; i < dclabellist.Count; i++){ %>
					<li><a class="menuclick" id="articlelabel<%=i+1 %>" href="#body" onclick="javascript:dbfilter('articlelabel','dlid','<%=dclabellist[i].Id %>',<%=i+1 %>,#{dclabelnum},'selectform','selectall','check_all')" title="<%=dclabellist[i].labelname %>" hidefocus="true"><%=dclabellist[i].labelname %></a></li>
					<%} %>
				</ul>
			</li>

			<li><span class="menufont">_{article_ishtml_botton}</span>
				<ul>
					<li><a class="menunoclick" id="articleishtml0" href="#body" onclick="javascript:dbfilter('articleishtml','ishtml',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="articleishtml1" href="#body" onclick="javascript:dbfilter('articleishtml','ishtml',1,1,3,'selectform','selectall','check_all')" title="_{article_ishtml_botton_2}" hidefocus="true">_{article_ishtml_botton_2}</a></li>
					<li><a class="menuclick" id="articleishtml2" href="#body" onclick="javascript:dbfilter('articleishtml','ishtml',2,2,3,'selectform','selectall','check_all')" title="_{article_ishtml_botton_1}" hidefocus="true">_{article_ishtml_botton_1}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{article_isorder_botton}</span>
				<ul>
					<li><a class="menunoclick" id="articleisorder0" href="#body" onclick="javascript:dbfilter('articleisorder','isorder',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="articleisorder1" href="#body" onclick="javascript:dbfilter('articleisorder','isorder',1,1,3,'selectform','selectall','check_all')" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" id="articleisorder2" href="#body" onclick="javascript:dbfilter('articleisorder','isorder',2,2,3,'selectform','selectall','check_all')" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{article_islink_botton}</span>
				<ul>
					<li><a class="menunoclick" id="articleislink0" href="#body" onclick="javascript:dbfilter('articleislink','islink',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="articleislink1" href="#body" onclick="javascript:dbfilter('articleislink','islink',1,1,3,'selectform','selectall','check_all')" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" id="articleislink2" href="#body" onclick="javascript:dbfilter('articleislink','islink',2,2,3,'selectform','selectall','check_all')" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{lock_botton}</span>
				<ul>
					<li><a class="menunoclick" id="articleisclass0" href="#body" onclick="javascript:dbfilter('articleisclass','isclass',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="articleisclass1" href="#body" onclick="javascript:dbfilter('articleisclass','isclass',1,1,3,'selectform','selectall','check_all')" title="_{article_audit_ok}" hidefocus="true">_{article_audit_ok}</a></li>
					<li><a class="menuclick" id="articleisclass2" href="#body" onclick="javascript:dbfilter('articleisclass','isclass',2,2,3,'selectform','selectall','check_all')" title="_{article_audit_no}" hidefocus="true">_{article_audit_no}</a></li>
				</ul>
			</li>
			<li><a class="menuclick" id="articleisorder0" href="#body" onclick="javascript:refreshurl('selectform')" title="_{all_botton}" hidefocus="true">_{getalllist_botton}</a></li>
		</ul>
	</li>
	<li class="menumain"><a id="search" href="#body" onclick="javascript:parent.windowsdig('_{article_search_botton}','iframe:<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSearch) %>?mid=<%=ctx.getInt("mid") %>&tid=<%=ctx.getInt("tid") %>&iframename='+self.frameElement.getAttribute('name'),'600px','450px','iframe',true);" title="_{article_search_botton}" hidefocus="true">_{search_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("article", "docdel", modelpowergroup))
      { %>
	<li class="menumain"><a id="del" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleDel) %>','articleselectinfoid',false,null,null,'#{load}','_{del_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{del_botton}</a></li>
	<%} %>
    <%if (bllPowerGroupService.powercheck("article", "docedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="sortall" onclick="javascript:sortinput('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSort) %>','#{load}','_{sort_messok}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all','articleinfoid','articlepid');" href="#body" title="_{article_log_sort}" hidefocus="true">_{pid_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("article", "docedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="setbotton" href="#body" hidefocus="true" title="_{set_botton}">_{set_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{lock_set_botton}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'isclass',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'isclass',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{article_isorder_botton_setting}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'isorder',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'isorder',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{article_ishtml_botton_setting}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'ishtml',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{article_ishtml_botton_2}" hidefocus="true">_{article_ishtml_botton_2}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>','articleselectinfoid',true,'ishtml',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{article_ishtml_botton_1}" hidefocus="true">_{article_ishtml_botton_1}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{article_recommend_botton_setting1}</span>
				<ul>
					<%foreach (var row in dclabellist) { %>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>?recommend=1','articleselectinfoid',true,'dlid','<%=row.Id %>','#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="<%=row.labelname %>" hidefocus="true"><%=row.labelname %></a></li>
					<%} %>
				</ul>
			</li>
			<li><span class="menufont">_{article_recommend_botton_setting2}</span>
				<ul>
                    <%foreach (var row in dclabellist) { %>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleSetting) %>?recommend=0','articleselectinfoid',true,'dlid','<%=row.Id %>','#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="<%=row.labelname %>" hidefocus="true"><%=row.labelname %></a></li>
					<%} %>
				</ul>
			</li>
		</ul>
	</li>
	<li class="menumain">
		<a id="htmlcreate" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().CreateHtml) %>','articleselectinfoid',false,null,null,'#{load}','_{creathtml_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{htmlcreat_botton}</a>
	</li>
	<%} %>
</ul>